import request from '@/utils/request'
import { memberApi } from '@/utils/comm'

// 查询飞员申请记录列表
export function listPilotApplyRecord(query) {
  return request({
    url: `${memberApi}/pilotApplyRecord/list`,
    method: 'get',
    params: query
  })
}

// 查询飞员申请记录详细
export function getPilotApplyRecord(id) {
  return request({
    url: `${memberApi}/pilotApplyRecord/` + id,
    method: 'get'
  })
}

// 通过审核
export function toPassAudit(id) {
  return request({
    url: `${memberApi}/pilotApplyRecord/toPassAudit/${id}`,
    method: 'put',
  })
}

// 驳回申请
export function toRejectApply(id) {
  return request({
    url: `${memberApi}/pilotApplyRecord/toRejectApply/${id}`,
    method: 'put',
  })
}
